<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
   <head>
        <title>Sushi Discount</title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'header.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images/sushiicons',file:'sushifavicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        
    </head>
    <body>

        <div id="loginBox">
          <sec:ifLoggedIn>
              <g:render template="/loggedbox" />
          </sec:ifLoggedIn>
          
          <sec:ifNotLoggedIn>
              <g:render template="/loginbox" />
          </sec:ifNotLoggedIn>          
        </div>

        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images/',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        <div id="sushiLogo"><a href="${createLink(uri: '/')}"><img src="${resource(dir:'images/sushiicons',file:'sushilogo3.png')}" alt="Hambre de Sushi" border="0" /></a></div>

        
        <div id="sushimenu">
              <ul>
                      <li class="first"><a href="${createLink(uri: '/')}">Home</a></li>
                      <li><g:link controller="sushiPlace" action="list">Locales</g:link></li>
                      <li class="last"><g:link controller="discount" action="list">Descuentos</g:link></li>
              </ul>
            <sec:ifNotLoggedIn>
              <div id="registerlink">¿Aún no te has registrado? Haz click <g:link controller="secUser" action="create">aquí</g:link></div>
            </sec:ifNotLoggedIn>
	</div>


        <g:layoutBody />
    </body>
</html>
